<div class="page-order">
	<div class="w">
		<div class="order-bread">
			<a href="javascript:void(0);" ng-click="jump('/home')">我的百货栈 ></a>
			<a href="javascript:void(0);" ng-click="jump('/orders')"> 订单中心 ></a>
			<span> 订单:  {{orderInfo.order_id}}</span>
		</div>
		<div class="order-title clearfix">
			<div class="left">订单号: {{orderInfo.order_id}}</div>
			<div class="right {{order.status}}">状态: {{orderInfo.status}}</div>
		</div>
		<div class="order-notices">重要提醒: 百货栈平台及销售商不会以订单异常、系统升级为由，要求您点击任何网址链接进行退款操作。烦请关注百货栈平台“谨防诈骗公告声明”</div>
		<div class="order-info-wrap">
			<div class="order-info-title">订单信息</div>
			<div class="order-details">
				<div class="order-details-item">
					<div class="title">收货人信息</div>
					<div class="content">
						<div class="content-item">收货人: {{orderInfo.fullname}}</div>
						<div class="content-item">地址: {{orderInfo.shipping_country}}{{orderInfo.shipping_zone}}{{orderInfo.shipping_city}}{{orderInfo.shipping_address}}</div>
						<div class="content-item">手机号: {{orderInfo.shipping_telephone}}</div>
					</div>
				</div>
				<div class="order-details-item">
					<div class="title">支付以及配送方式</div>
					<div class="content">
						<div class="content-item">支付方式: {{orderInfo.payment_method}}</div>
						<div class="content-item">送货日期: {{orderInfo.date_added}} 从无锡物流中心发货</div>
					</div>
				</div>
				<div class="order-details-item">
					<div class="title">发票信息</div>
					<div class="content">
						<div class="invoice-wrap clearfix">
					    <div class="invoice-title">
					      是否开具发票
					    </div>
					    <div class="invoice-value bhz-checkbox" ng-class="{'on':orderInfo.bill_status != 0}" ng-click="printBill();"></div>
					  </div>
					</div>
				</div>
				<div class="order-details-item order-products">
					<div class="title">商品清单</div>
					<div class="products-list">
						<table class="products-list-table">
							<tr class="product-th">
								<td class="id">商品ID</td>
								<td class="image">商品图片</td>
								<td class="name">商品名称</td>
								<td class="sku_add">条形码</td>
								<td class="price">百货栈价</td>
								<td class="quantity">商品数量</td>
								<td class="options">操作</td>
							</tr>
							<tr class="product-item" ng-repeat="product in orderInfo.products">
								<td class="id">{{product.product_id}}</td>
								<td class="image"><img ng-src="{{product.image.image}}"></td>
								<td class="name"><div class="auto-cut-word-two-line"></div>{{product.name}}</td>
								<td class="sku_add">{{product.sku}}</td>
								<td class="price">{{product.price}}</td>
								<td class="quantity">{{product.quantity}}</td>
								<td class="options">
								<a style="border-color: #A92123;background-color: #A92123;color: #fff;" class="option-btn option-review" href="javascript:void(0);" ng-if="product.can_comment" ng-click="jump('/product/'+product.product_id)">再买一次</a>
								<a class="option-btn option-review" href="javascript:void(0);" ng-if="product.can_comment" ng-click="gotoReview(orderInfo.order_id,product.order_product_id)">去评价</a>
								</td>
							</tr>
						</table>
					</div>
				</div>
			</div>
			
			<div class="totals">
				<div class="total-item" ng-repeat="total in orderInfo.totals">
					{{total.title}}:<span class="price">{{total.value}}</span>
				</div>
			</div>

			
			<div class="options">
				<a class="option-btn option-pay" href="javascript:void(0);" ng-if="orderInfo.status == '待付款'" ng-click="gotoPay(orderInfo.order_id)">去支付</a>
			</div>
		</div>
	</div>
</div>

<script type="text/ng-template" id="confirmPrintDialog.html">
  <div class="dialog confirm-dialog" ng-click="$event.stopPropagation();">
    <p class="title ngdialog-text-center">确认要对当前订单开具发票吗？</p>
    <div class="ngdialog-buttons">
      <button type="button" class="ngdialog-button ngdialog-button-secondary" ng-click="closeThisDialog(0);$event.stopPropagation()">取消</button>
      <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="confirm(1);$event.stopPropagation()">确认</button>
    </div>
  </div>
</script>